<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<div class="location">
    <strong>当前位置:</strong>
    <span>供货商管理页面</span>
</div>
<form action="${pageContext.request.contextPath}/supplier/list" method="post" style="margin-top:50px;margin-left:10px">
    <table border="1">
        <tr>
            <td colspan="7">
                供货商名称：<input type="text" name="supName" value="${supName}">
                <button type="submit">查询</button>
            </td>
        </tr>
        <tr>
            <th>供应商编码</th><a href="${pageContext.request.contextPath}/user/toSelectId?id=${user.id}"><img src="${pageContext.request.contextPath }/statics/images/view.png"/></a>
						<a href="${pageContext.request.contextPath}/user/toUpdate?id=${user.id}"><img src="${pageContext.request.contextPath }/statics/images/upd.png"/></a>
						<a href="${pageContext.request.contextPath}/user/delete?id=${user.id}"><img src="${pageContext.request.contextPath}/statics/images/del.png"/></a>
            <th>供货商名称</th>
            <th>联系人</th>
            <th>联系电话</th>
            <th>传真</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        <c:forEach var="s" items="${list}">
            <tr>
                <td>${s.supCode}</td>
                <td>${s.supName}</td>
                <td>${s.supContact}</td>
                <td>${s.supPhone}</td>
                <td>${s.supFax}</td>
                <td>${s.createdTime}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/user/toSelectId?id=${user.id}"><img src="${pageContext.request.contextPath }/statics/images/view.png"/></a>
                    <a href="${pageContext.request.contextPath}/user/toUpdate?id=${user.id}"><img src="${pageContext.request.contextPath }/statics/images/upd.png"/></a>
                    <a href="${pageContext.request.contextPath}/user/delete?id=${user.id}"><img src="${pageContext.request.contextPath}/statics/images/del.png"/></a>

                </td>
            </tr>
        </c:forEach>
    </table>
    共${pageCount}条记录
    <a href="${pageContext.request.contextPath}/supplier/list?pageNo=${param.pageNo-1}">上一页</a>
    <a href="${pageContext.request.contextPath}/supplier/list?pageNo=${param.pageNo+1}">下一页</a>
    当前是第${param.pageNo}页
    <p style="float: right">
        跳转至     <input type="text" name="pageNo">页
        <button type="submit">Go</button>
    </p>
</form>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
